<template>
  <div>
    <p class="BrandSupply_title">品牌制造商直供</p>
    <div class="content">
      <div
        class="con-item"
        v-for="obj in brandList"
        :key="obj.id"
        @click="
          $router.push({
            path: '/bddetail',
            query: {
              id: obj.id,
            },
          })
        "
      >
        <img :src="obj.new_pic_url" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "BrandSupply",
  props: {
    brandList: {
      type: Array,
    },
  },
};
</script>

<style scoped lang="scss">
.content {
  width: 100%;
  display: flex;
  // flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-evenly;
  .con-item {
    width: 45%;
  }
  img {
    width: 100%;
  }
}
.BrandSupply_title {
  text-align: center;
  font-size: 40px;
  color: #666;
  padding: 20px 0;
}
</style>
